package tr.edu.metu.is550.isell.domain;

import javax.validation.ConstraintViolation;
import java.util.Set;

public class ValidationException extends ApplicationException {
    private Set<ConstraintViolation<Object>> violations;

    public ValidationException(Set<ConstraintViolation<Object>> violations) {
        this.violations = violations;
    }

    public Set<ConstraintViolation<Object>> getViolations() {
        return violations;
    }

}
